import request from '@/utils/request'

export function listStage(query) {
  return request({
    url: '/work/stage/list',
    method: 'get',
    params: query
  })
}

export function getStage(stageId) {
  return request({
    url: '/work/stage/' + stageId,
    method: 'get'
  })
}

export function addStage(data) {
  return request({
    url: '/work/stage',
    method: 'post',
    data: data
  })
}

export function updateStage(data) {
  return request({
    url: '/work/stage',
    method: 'put',
    data: data
  })
}

export function delStage(stageId) {
  return request({
    url: '/work/stage/' + stageId,
    method: 'delete'
  })
}

// 开发阶段选择框
export function optionSelect() {
  return request({
    url: '/work/stage/optionselect',
    method: 'get'
  })
}
